package net.maku.events.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

import net.maku.framework.common.utils.DateUtils;
import net.maku.system.entity.SysOrgEntity;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 题库题目
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */
@Data
@Schema(description = "题库题目")
public class ActivityQuestionBankVO implements Serializable, TransPojo {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Long id;

    @Schema(description = "工会ID")
    @Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
    private Long orgId;

    @Schema(description = "主办方名称")
    private String orgName;

    @Schema(description = "题目分类")
    private Integer questionClassify;

    @Schema(description = "判断题专属是否正确 0 否  1 是")
    private Integer whetherCorrect;

    @Schema(description = "题目类型")
    private Integer questionType;

    @Schema(description = "题目题干")
    private String questionTitle;

    @Schema(description = "题目选项")
    private List<ActivityQuestionBankOptionVO> options;

    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private LocalDateTime createTime;

    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private LocalDateTime updateTime;
}